package com.zy.explore.license.interfaces.frm;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * description 表(customer_license_info)的保存参数Frm对象
 *
 * @author 🇨🇳中国印🇨🇳
 * @date 2022年04月06日 10:13:39
 */
@ApiModel("表(customer_license_info)实体类保存Frm")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CustomerLicenseInfoSaveFrm {

    /**
     * 表主键
     */
    @ApiModelProperty(value = "表主键", example = "'1'")
    private String id;
    /**
     * 客户类型: user-个人(默认), company-公司, institution-机构
     */
    @ApiModelProperty(value = "客户类型: user-个人(默认), company-公司, institution-机构", example = "'1'")
    private String customerType;
    /**
     * 证书开始生效时间
     */
    @ApiModelProperty(value = "证书开始生效时间起 yyyy-MM-dd HH:mm:ss", example = "2021-05-20 00:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date issueTime;
    /**
     * 客户名称
     */
    @ApiModelProperty(value = "客户名称", example = "'1'")
    private String customerName;
    /**
     * 证书到期时间
     */
    @ApiModelProperty(value = "证书到期时间起 yyyy-MM-dd HH:mm:ss", example = "2021-05-20 00:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date expiryTime;
    /**
     * 证书校验自定义参数json串
     */
    @ApiModelProperty(value = "证书校验自定义参数json串", example = "'1'")
    private String licenseCheckModel;
    /**
     * 是否删除: 0-否 1-是
     */
    @ApiModelProperty(value = "是否删除: 0-否 1-是", example = "1")
    private Integer delFlag;

    /**
     * 证书校验参数是否是json格式
     */
    @ApiModelProperty(value = "证书校验参数是否是json格式", required = true, example = "false")
    private Boolean jsonFormat;

    /**
     * mac地址
     */
    @ApiModelProperty(value = "Mac地址", example = "92-B3-34-E2-G8-F7,09-35-2D-6P-8M-31")
    private String macAddress;

    /**
     * CPU序列号
     */
    @ApiModelProperty(value = "CPU序列号", example = "BCFEBDAFG060809A1")
    private String cpuSerial;

    /**
     * 主板序列号
     */
    @ApiModelProperty(value = "主板序列号", example = "L1QP2BM0FGP")
    private String mainBoardSerial;
}
